/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.maslyk.invitation.converter;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;

/**
 *
 * @author kris
 */
public class PermissionConverter implements Converter
{

    public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) throws ConverterException
    {
        return arg2;
    }

    public String getAsString(FacesContext arg0, UIComponent arg1, Object arg2) throws ConverterException
    {
        return arg2.toString();
    }

}
